﻿<h2>
	<a>
	点餐详情
	</a>
</h2>
<p>
<span id="span_count">#{list items:foodGroups.entrySet() ,as:'k'}'<span class="span_order_list_foodname">${k.getKey()}</span>':'<span class="span_order_list_count">${k.getValue().size()}</span>'份 ; #{/list}</span>
<ul id="ul_orderslist">
#{list items:orders ,as:'order'}
<li>'<span class="span_order_list_username">${order.user.userName}</span>'于'<span class="span_order_list_date">${order.add_date.format('dd MMMM HH:mm:ss')} (${order.add_date.since()})</span>' 预定了 '<span class="span_order_list_food">${order.food.name}</span>'</li>
#{/list}
</ul>
</p>
<h2>
	<a>
	点餐统计
	</a>
</h2>
<script type="text/javascript">
$(function () {
	$('#pieChart').gchart({
		type: 'pie3D', 
		title: '订餐统计', 
		titleColor: 'green',
		width: '620',
		height: '288',
		backgroundColor: $.gchart.gradient('horizontal', 'ccffff', 'ccffff00'),
		series: [$.gchart.series([
					#{list items:foodGroups.entrySet() ,as:'k'}${k.getValue().size()}${k_isLast ? '' : ',' }#{/list}
					])
				],
		legend: 'right',
		dataLabels: [
					#{list items:foodGroups.entrySet() ,as:'k'}'${k.getKey()}'${k_isLast ? '' : ',' }#{/list}
					]
					});
});
</script>
<p>
<div id="pieChart"></div>
</p>


